//
//  OrderDetailStateTableViewCell.swift
//  ZNHXManagement
//
//  Created by 四川中农 on 2018/9/29.
//  Copyright © 2018年 四川中农. All rights reserved.
//

import UIKit

class OrderDetailStateTableViewCell: UITableViewCell {

    @IBOutlet weak var orderNum: UILabel!
    @IBOutlet weak var dateLabel: UILabel!
    @IBOutlet weak var steteLabel: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    
    func reload(withModel model:OrdersModel){
        self.orderNum.text = model.number
        self.dateLabel.text = model.createTime
        switch model.state {
        case 1:
            // 0所有 1待处理 2已处理
            self.steteLabel.text = "待处理"
        case 2:
            // 0所有 1待处理 2已处理
            self.steteLabel.text = "已处理"
        default:
            break
        }
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
